{extend name="$_tpl_public_layout_danceadmin"/}


{block name="breadcrumb"}
<ol class="breadcrumb">
	<li class="breadcrumb-item"><a href="{:url('admin/index/index')}">{:config('system.site_title')}</a></li>
	<li class="breadcrumb-item"><a href="{:url('admin/weixinAccount/index')}">{$sideName}</a></li>
</ol>
{/block}


{block name="pageheader"}
{$sideName}
{/block}


{block name="content"}
<div class="card border-left-primary shadow mb-3">
	<div class="card-body">
		<div>公众号接入本网站有两种方法。</div>
		<div>1、API接口接入。这只需要填入AppID、AppSecret、Token、EncodingAESKey，在公众号基础配置里面，填入"API接口"获取到的地址，即可接入成功。</div>
		<div>2、第三方网站接入。这只需要填入AppID。点击"进入管理"，左侧菜单有个"授权服务"，点击授权后扫码即可。</div>
	</div>
</div>

<div class="card">
	<div class="card-body">
		<div class="mb-3">
			<a href="{:url('admin/weixinAccount/add')}" class="btn btn-primary btn-sm dataTable-add">添加</a>
		</div>
		<form class="">
			<table class="table table-striped table-bordered table-hover dataTable-table">
				<thead>
					<tr>
						<th width="76">序号</th>
						<th width="80">二维码</th>
						<th>名称</th>
						<th width="120">微信号</th>
						<th width="160">操作</th>
					</tr>
				</thead>
				<tbody>
					{volist name="list" id="vo"}
					<tr>
						<td>{$vo['id']}</td>
						<td><img src="{$vo['ewmurl']}" class="upload-img-full" /></td>
						<td><a href="{:url('weixin_manage/index/index', array('wid'=>$vo['id']))}">{$vo['wxname']}</a></td>
						<td>{$vo['wxnumber']}</td>
						<td>
							<div>
								<a href="{:url('admin/weixinAccount/add', ['id'=>$vo['id']])}" class="btn btn-primary btn-xs">编辑</a>
								<a href="{:url('admin/weixinAccount/doDelete', ['id'=>$vo['id']])}" class="btn btn-danger btn-xs J_layerConfirm" data-tip="您确定要执行删除操作吗？">删除</a>
							</div>
							<div class="mt-1">
								<a href="{:url('weixin_manage/index/index', array('wid'=>$vo['id']))}" class="btn btn-success btn-xs">进入管理</a>
								<a href="{:url('admin/weixinAccount/showApi', ['id'=>$vo['id']])}" class="btn btn-info btn-xs J_layerDialog" data-tip="API接口">API接口</a>
							</div>
						</td>
					</tr>
					{/volist}
				</tbody>
			</table>
		</form>
		<div class="dataTable-pages">{$pageShow|raw}</div>
	</div>
</div>
{/block}